<html>
<head><meta charset="utf-8"><title>incr compile ICE building rustc · t-compiler/wg-incr-comp · Zulip Chat Archive</title></head>
<h2>Stream: <a href="https://rust-lang.github.io/zulip_archive/stream/241847-t-compiler/wg-incr-comp/index.html">t-compiler/wg-incr-comp</a></h2>
<h3>Topic: <a href="https://rust-lang.github.io/zulip_archive/stream/241847-t-compiler/wg-incr-comp/topic/incr.20compile.20ICE.20building.20rustc.html">incr compile ICE building rustc</a></h3>

<hr>

<base href="https://rust-lang.zulipchat.com">

<head><link href="https://rust-lang.github.io/zulip_archive/style.css" rel="stylesheet"></head>

<a name="209972459"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/241847-t-compiler/wg-incr-comp/topic/incr%20compile%20ICE%20building%20rustc/near/209972459" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Aman Arora <a href="https://rust-lang.github.io/zulip_archive/stream/241847-t-compiler/wg-incr-comp/topic/incr.20compile.20ICE.20building.20rustc.html#209972459">(Sep 14 2020 at 07:29)</a>:</h4>
<p>I got following error while working on modifying capture analysis which is part of rustc_typeck</p>
<div class="codehilite"><pre><span></span><code>error: internal compiler error: compiler/rustc_middle/src/ty/query/on_disk_cache.rs:422:23: could not decode cached query result: read_option: expected 0 for None or 1 for Some

thread &#39;rustc&#39; panicked at &#39;assertion failed: `(left == right)
</code></pre></div>


<p>Complete log is at <a href="http://csclub.uwaterloo.ca/~a52arora/rust-builds/log_75e93202-df10-4ea2-bff9-167ff9b968c2">http://csclub.uwaterloo.ca/~a52arora/rust-builds/log_75e93202-df10-4ea2-bff9-167ff9b968c2</a></p>
<p>I couldn't find an open issue with similar problem. I haven't built since, what all information (and how) I can collect to provide enough context</p>



<a name="209972633"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/241847-t-compiler/wg-incr-comp/topic/incr%20compile%20ICE%20building%20rustc/near/209972633" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Aman Arora <a href="https://rust-lang.github.io/zulip_archive/stream/241847-t-compiler/wg-incr-comp/topic/incr.20compile.20ICE.20building.20rustc.html#209972633">(Sep 14 2020 at 07:31)</a>:</h4>
<p>I build using <code>x.py build -j50 -i --stage 1</code></p>



<a name="210030009"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/241847-t-compiler/wg-incr-comp/topic/incr%20compile%20ICE%20building%20rustc/near/210030009" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> pnkfelix <a href="https://rust-lang.github.io/zulip_archive/stream/241847-t-compiler/wg-incr-comp/topic/incr.20compile.20ICE.20building.20rustc.html#210030009">(Sep 14 2020 at 16:29)</a>:</h4>
<p>lets see, so you haven't done a <code>x.py clean</code> yet, right? Please don't do a clean; or at least, first archive the state of your <code>build/</code> directory so that we'll have access to the incremental build artifacts</p>



<a name="210034934"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/241847-t-compiler/wg-incr-comp/topic/incr%20compile%20ICE%20building%20rustc/near/210034934" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Aman Arora <a href="https://rust-lang.github.io/zulip_archive/stream/241847-t-compiler/wg-incr-comp/topic/incr.20compile.20ICE.20building.20rustc.html#210034934">(Sep 14 2020 at 17:10)</a>:</h4>
<p>I haven't done clean/run x.py since. </p>
<p>My build dir is at 39GB, are there smaller subsections that I can backup instead?</p>



<a name="210035281"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/241847-t-compiler/wg-incr-comp/topic/incr%20compile%20ICE%20building%20rustc/near/210035281" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> simulacrum <a href="https://rust-lang.github.io/zulip_archive/stream/241847-t-compiler/wg-incr-comp/topic/incr.20compile.20ICE.20building.20rustc.html#210035281">(Sep 14 2020 at 17:12)</a>:</h4>
<p>It would be best to do everything just to be 100% sure</p>



<a name="210035368"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/241847-t-compiler/wg-incr-comp/topic/incr%20compile%20ICE%20building%20rustc/near/210035368" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> simulacrum <a href="https://rust-lang.github.io/zulip_archive/stream/241847-t-compiler/wg-incr-comp/topic/incr.20compile.20ICE.20building.20rustc.html#210035368">(Sep 14 2020 at 17:13)</a>:</h4>
<p>it looks like the bug is not in tests, though, so you could leave that out probably</p>



<a name="210035461"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/241847-t-compiler/wg-incr-comp/topic/incr%20compile%20ICE%20building%20rustc/near/210035461" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> simulacrum <a href="https://rust-lang.github.io/zulip_archive/stream/241847-t-compiler/wg-incr-comp/topic/incr.20compile.20ICE.20building.20rustc.html#210035461">(Sep 14 2020 at 17:14)</a>:</h4>
<p>do you have enough space to make a local copy? That would be enough to where you can start deleting things after duplicating it without losing state</p>



<a name="210043449"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/241847-t-compiler/wg-incr-comp/topic/incr%20compile%20ICE%20building%20rustc/near/210043449" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Aman Arora <a href="https://rust-lang.github.io/zulip_archive/stream/241847-t-compiler/wg-incr-comp/topic/incr.20compile.20ICE.20building.20rustc.html#210043449">(Sep 14 2020 at 18:18)</a>:</h4>
<p><a href="http://csclub.uwaterloo.ca/~a52arora/build.tar">http://csclub.uwaterloo.ca/~a52arora/build.tar</a></p>



<a name="210069371"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/241847-t-compiler/wg-incr-comp/topic/incr%20compile%20ICE%20building%20rustc/near/210069371" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Aman Arora <a href="https://rust-lang.github.io/zulip_archive/stream/241847-t-compiler/wg-incr-comp/topic/incr.20compile.20ICE.20building.20rustc.html#210069371">(Sep 14 2020 at 22:13)</a>:</h4>
<p><a href="https://github.com/rust-lang/rust/issues/76720">https://github.com/rust-lang/rust/issues/76720</a></p>
<p>Please let me know if there is anything else that will be needed, otherwise I'll be cleaning by build dir <del>tonight</del> tomorrow</p>



<a name="210352384"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/241847-t-compiler/wg-incr-comp/topic/incr%20compile%20ICE%20building%20rustc/near/210352384" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Aman Arora <a href="https://rust-lang.github.io/zulip_archive/stream/241847-t-compiler/wg-incr-comp/topic/incr.20compile.20ICE.20building.20rustc.html#210352384">(Sep 17 2020 at 06:30)</a>:</h4>
<p>Not sure if something changed around incr compile, but I was able to trigger this again: <a href="http://csclub.uwaterloo.ca/~a52arora/rust-builds/log_30d4a7ae-dc48-41c6-a2c3-39043eee22bc">http://csclub.uwaterloo.ca/~a52arora/rust-builds/log_30d4a7ae-dc48-41c6-a2c3-39043eee22bc</a></p>
<p>and only changes since my last x.py clean have been around how closures and generators are being printed</p>



<hr><p>Last updated: Aug 07 2021 at 22:04 UTC</p>
</html>